#include<stdio.h>
#include<string.h>

int main(void)
{
    char string1[] = "Hello world"; //字符数组存储字符串指针.char []--数组形式
    char *string2 = "Hello world";  //字符指针指向字符串常量.char * --指针变量
    char *string3 = string1;        //指向字符数组的指针
    printf("The length of string1 is %s\n", strchr(string1, '0'));
    printf("The length of string2 is %s\n", strchr(string2, 'H'));
    printf("The length of string3 is %s\n", strchr(string3, 'd'));
    return 0;
    return 0;
}